package top.qingyunge.autumn.config.DruidConfig;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@Data
@ConfigurationProperties(prefix = "custom")
public class DataSourcePropertiesMapWrapper {

    public Map<String,DataSourceProperties> dataSourcesMap;

    @Data
    public static class DataSourceProperties{
        private String url;
        private String username;
        private String password;
        private String driverClassName;
        private String type;
    }
}

